package com.szml.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName product_proxy_record
 */
@TableName(value ="product_proxy_record")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductProxyRecord implements Serializable {
    /**
     * 商品代理记录id
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long proxyId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 代理该商品的user_id
     */
    private Long userProxyId;

}